package com.hcy.common.dto.response;

import com.hcy.rabbitbasicmodel.signl.Add;
import com.hcy.rabbitbasicmodel.signl.Delete;
import com.hcy.rabbitbasicmodel.signl.Update;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author huchenying
 * @Description
 * @Date 2022/3/20 16:24
 */
@Data
public class CallCarConfigDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(groups = {Delete.class, Update.class})
    private Integer id;

    /**
     * 叫车的第几回合
     */
    @NotNull(groups = {Add.class})
    private Integer round;

    /**
     * 当前回合叫车半径
     */
    @NotNull(groups = {Add.class})
    private Integer radius;

    /**
     * 和下一回合间隔几秒
     */
    @NotNull(groups = {Add.class})
    private Integer gapTime;

    /**
     * 最多推送给最近的近几辆车
     */
    @NotNull(groups = {Add.class})
    private Integer pushMaxCar;

    /**
     * 是否需要向用户推送提示消息
     */
    @NotNull(groups = {Add.class})
    private Integer isCallback;

    /**
     * 给用户提示什么消息
     */
    @NotNull(groups = {Add.class})
    private String callbackInfo;

}
